﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/LOSSite.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<PresentationLayerMVC.Models.Mortgage>>" %>

<asp:Content ID="cntForm" ContentPlaceHolderID="Content" runat="server">
    <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>" type="text/javascript"></script>

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                MortgagorId
            </th>
            <th>
                PropertyId
            </th>
            <th>
                SecurityId
            </th>
            <th>
                AppId
            </th>
            <th>
                Amount
            </th>
            <th>
                RelToBorrowerCode
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.SecurityId }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.SecurityId })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.SecurityId })%>
            </td>
            <td>
                <%: item.MortgagorId %>
            </td>
            <td>
                <%: item.PropertyId %>
            </td>
            <td>
                <%: item.SecurityId %>
            </td>
            <td>
                <%: item.AppId %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Amount) %>
            </td>
            <td>
                <%: item.RelToBorrowerCode %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

